<?php echo $this->doctype(); ?> 
<html> 
    <head> 
        <?php echo $this->docType('HTML5') ?>
        <?php echo $this->headMeta()->setCharset('UTF-8'); ?> 
        <?php echo $this->headTitle(); ?> 
        <?php echo $this->headLink()->prependStylesheet($this->baseUrl() . '/css/bootstrap.min.css'); ?> 
        <?php echo $this->inlineScript()->prependFile($this->baseUrl() . '/js/jquery-1.11.0.min.js'); ?>  
        <?php echo $this->headScript()->prependFile($this->baseUrl() . '/js/bootstrap.min.js'); ?> 
    </head> 
    <body> 
        <nav class="navbar navbar-inverse navbar-static-top" role="navigation">
            <div class="container-fluid">
                <!-- Brand and toggle get grouped for better mobile display -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href="<?php echo $this->url(array('controller' => 'index', 'action' => 'index', true)); ?>">Galaxy Swiss Bourdin</a>
                </div>

                <!-- Collect the nav links, forms, and other content for toggling -->
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                    <ul class="nav navbar-nav">
                        <li><a href="<?php echo $this->url(array('controller' => 'index', 'action' => 'index', true)); ?>">Index</a></li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Visiteurs <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo $this->url(array('controller' => 'visiteur', 'action' => 'lister', true)); ?>">Lister</a></li>
                                <li><a href="<?php echo $this->url(array('controller' => 'visiteur', 'action' => 'gerer', true)); ?>">Gerer</a></li>
                            </ul>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Frais Forfait <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo $this->url(array('controller' => 'frais-forfait', 'action' => 'lister', true)); ?>">Lister</a></li>
                                <li><a href="<?php echo $this->url(array('controller' => 'frais-forfait', 'action' => 'gerer', true)); ?>">Gerer</a></li>
                            </ul>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">Statistiques <b class="caret"></b></a>
                            <ul class="dropdown-menu">
                                <li><a href="<?php echo $this->url(array('controller' => 'stats', 'action' => 'cumul-visiteur', true)); ?>">Cumuls visiteur</a></li>
                                <li><a href="<?php echo $this->url(array('controller' => 'stats', 'action' => 'cumul-frais', true)); ?>">Cumuls frais</a></li>
                            </ul>
                        </li>
                    </ul>
                    <ul class="nav navbar-nav navbar-right">
                        <?php
                        $auth = Zend_Auth::getInstance();
                        if (!$auth->hasIdentity()) {
                            ?>
                            <li><a href="<?php echo $this->url(array('controller' => 'authentication', 'action' => 'login', true)); ?>">Connexion</a></li>
                        <?php } else { ?>
                            <li><a href="<?php echo $this->url(array('controller' => 'authentication', 'action' => 'logout', true)); ?>">Deconnexion <?php echo $auth->getStorage()->read()->nom ?></a></li>
                        <?php } ?>
                    </ul>
                </div><!-- /.navbar-collapse -->
            </div><!-- /.container-fluid -->
        </nav>
        <section>
            <h1><?php echo $this->escape($this->title); ?></h1> 
            <?php echo $this->layout()->content; ?> 
        </section>
    </body> 
</html>